<?php 
$debug = $response->getAttribute("debug");
$logger = $response->getAttribute("logger");
?>
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>Bibliothèque</title>

<!-- meta -->
<meta name="description" content="Gestion de bibliothèque">
<meta name="author" content="Rémi San">
<?php 
    $css  = 'Applications/Bibliotheque/Template/styles/styles.css,' ;
    $css .= 'Applications/Bibliotheque/Template/styles/psiframework.css' ;
    
    $js   = 'Plugins/Prototype/Template/scripts/prototype.js,' ;
    $js  .= 'Applications/Bibliotheque/Template/scripts/psiframework.js,' ;
    $js  .= 'Applications/Bibliotheque/Template/scripts/scripts.js' ;
?>
<link
    rel="stylesheet"
    type="text/css"
    href="Styles/styles.php?file=<?php Printer::display($css); ?>" />
<script
    type="text/javascript"
    src="Scripts/scripts.php?file=<?php Printer::display($js); ?>"></script>
</head>
<body>
    <div id="wrapper">
        <header>
            <?php $templateManager->displayTemplate('header');  ?>
        </header>
        <div id="container">
            <div class="menu">
                <?php $templateManager->displayTemplate('menu');  ?>
            </div>
            <div id="main">
                <div id="content">
                    <div class="contentBlock">
                        <?php $templateManager->displayTemplate('main');  ?>
                    </div>
                </div>
            </div>
        </div>
        <footer>
            <?php $templateManager->displayTemplate('footer');  ?>
        </footer>
    </div>
    <?php
    if ($debug) {
    ?>
    <div id="debugContainer" class="reduced">
        <div id="debugWindow">
            <div id="debugControl" onclick="javascript:showDebug()"></div>
            <div id="debug" class="hidden">
                <?php Printer::display($logger->getLogs());  ?>
            </div>
        </div>
    </div>
    <?php
    }
    ?>
</body>
</html>
